From 24082fc3c3c779dc9ac9e27135feb0fe1166f796 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 7 Jun 2024 10:57:11 -0400 Subject: [PATCH] * lisp/subr.el (with-silent-modifications): Minor simplification --- lisp/subr.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/subr.el b/lisp/subr.el index 57c6f8a528f..e2e211369c9 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -5082,8 +5082,7 @@ of that nature." (unwind-protect (progn ,@body) - (when (or (not ,modified) - (eq ,modified 'autosaved)) + (when (memq ,modified '(nil autosaved)) (restore-buffer-modified-p ,modified)))))) (defmacro with-output-to-string (&rest body) -- 2.30.2